package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

/**
 * 检验项-新对象 main_inspection_item
 *
 * @author qijian
 * @date 2024-02-02
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_inspection_item")
public class InspectionItem extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "ID")
    private Long id;

    @Excel(name = "检验编号")
    @ApiModelProperty(value = "检验编号")
    private String examineCode;

    @Excel(name = "检验项")
    @ApiModelProperty(value = "检验项")
    private String examineName;

    @Excel(name = "自检方法")
    @ApiModelProperty(value = "自检方法")
    private String selfMethod;

    @Excel(name = "检验标准")
    @ApiModelProperty(value = "检验标准")
    private String examineStandard;

    @Excel(name = "检验单位")
    @ApiModelProperty(value = "检验单位")
    private String examineUnit;

    @Excel(name = "专检方法")
    @ApiModelProperty(value = "专检方法")
    private String specMethod;

    @ApiModelProperty("说明")
    private String remarks;

    @Excel(name = "检验工具")
    @ApiModelProperty(value = "检验工具")
    private String examineTool;

    @ApiModelProperty(value = "上传图片的序号")
    private String itemIndex;

//    @ApiModelProperty(value = "检验（判定）依据")
//    private String requirements;


    @TableField(exist = false)
    private List<InspectionItemDetail> details;

}
